// samsting : this file is auto create.

#include "Ecs/2014-05-26/DescribeImageSharePermissionResponse.h"

namespace aliyun { namespace Ecs {

DescribeImageSharePermissionResponse::DescribeImageSharePermissionResponse() {
}

const string& DescribeImageSharePermissionResponse::ShareGroup::GetGroup(void) const {
  return Group_;
}

const string& DescribeImageSharePermissionResponse::Account::GetAliyunId(void) const {
  return AliyunId_;
}

const std::vector<DescribeImageSharePermissionResponse::ShareGroup>& DescribeImageSharePermissionResponse::GetShareGroups(void) const {
  return ShareGroups_;
}

const std::vector<DescribeImageSharePermissionResponse::Account>& DescribeImageSharePermissionResponse::GetAccounts(void) const {
  return Accounts_;
}

const string& DescribeImageSharePermissionResponse::GetRegionId(void) const {
  return RegionId_;
}

int DescribeImageSharePermissionResponse::GetTotalCount(void) const {
  return TotalCount_;
}

int DescribeImageSharePermissionResponse::GetPageNumber(void) const {
  return PageNumber_;
}

int DescribeImageSharePermissionResponse::GetPageSize(void) const {
  return PageSize_;
}

const string& DescribeImageSharePermissionResponse::GetImageId(void) const {
  return ImageId_;
}

const char* DescribeImageSharePermissionResponse::BaseKey(void) {
  return "DescribeImageSharePermissionResponse";
}

void DescribeImageSharePermissionResponse::UnmarshallerMap(std::map<string, string>& response_map) {
  int ShareGroups__length = 0;
  UnmarshallerInt(ShareGroups__length, response_map, "DescribeImageSharePermissionResponse.ShareGroups.Length");
  if(ShareGroups__length >= 0) {
    ShareGroups_.resize(ShareGroups__length);
    for(int i1 = 0; i1 < ShareGroups__length; i1++) {
      UnmarshallerString(ShareGroups_[i1].Group_, response_map, "DescribeImageSharePermissionResponse.ShareGroups["+string_ValueOfInt(i1)+"].Group");
    } // for(int i1 = 0; i1 < ShareGroups__length; i1++) {
  } // if(ShareGroups__length >= 0) {

  int Accounts__length = 0;
  UnmarshallerInt(Accounts__length, response_map, "DescribeImageSharePermissionResponse.Accounts.Length");
  if(Accounts__length >= 0) {
    Accounts_.resize(Accounts__length);
    for(int i1 = 0; i1 < Accounts__length; i1++) {
      UnmarshallerString(Accounts_[i1].AliyunId_, response_map, "DescribeImageSharePermissionResponse.Accounts["+string_ValueOfInt(i1)+"].AliyunId");
    } // for(int i1 = 0; i1 < Accounts__length; i1++) {
  } // if(Accounts__length >= 0) {

  UnmarshallerString(RegionId_, response_map, "DescribeImageSharePermissionResponse.RegionId");
  UnmarshallerInt(TotalCount_, response_map, "DescribeImageSharePermissionResponse.TotalCount");
  UnmarshallerInt(PageNumber_, response_map, "DescribeImageSharePermissionResponse.PageNumber");
  UnmarshallerInt(PageSize_, response_map, "DescribeImageSharePermissionResponse.PageSize");
  UnmarshallerString(ImageId_, response_map, "DescribeImageSharePermissionResponse.ImageId");
}


} } // namespace aliyun { namespace Ecs {

// end of file 
